package com.prg.action.app.backup;

import com.prg.service.BackupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 14-12-29
 * Time: 下午9:42
 * To change this template use File | Settings | File Templates.
 */

@Controller
@RequestMapping("/backup")
public class BackupController {
    @Autowired
   private BackupService backupService;
    @RequestMapping("/backup")
    public String savebackup(){
            backupService.saveback();
        return "home";

    }

}
